﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Menu.aspx.vb" Inherits="WebForm_Main_Menu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>

<script type="text/javascript">

    var w;
    function funClose() {
        w = w - 115;
        if (w <= 0) {
            w = 0;
        }
        parent.document.getElementById('frmSet').cols = '0,10,*';
    }
    function RedirectPage(URL,IsNewWin) {
        if (URL != "") {
            if (document.getElementById("txtWinTargetBlank") != null) {
                if (document.getElementById("txtMenuCollapsible") != null) {
                    if (document.getElementById("txtMenuCollapsible").value == "Y" && document.getElementById("txtWinTargetBlank").value == "N") {
                        funClose();
                        try {
                            window.parent.frames["framSplit"].document.getElementById("imgSplit").src = "../../images/mopen.gif";
                            window.parent.frames["framSplit"].document.getElementById("imgSplit").alt = "Open menu";
                            window.parent.frames["framSplit"].document.getElementById("btnOpen").style.visibility = "visible";
                            window.parent.frames["framSplit"].document.getElementById("btnClose").style.visibility = "hidden";
                        }
                        catch (Ex) {
                        }
                    
                    }
                }
            }
        
            if (document.getElementById("txtWinTargetBlank") != null) {
                if (document.getElementById("txtWinTargetBlank").value == "N" || IsNewWin=="N") {

                    window.parent.frames["fraMain"].location.replace(URL);
                    
                    
                    if (document.getElementById("txtMenuCollapsible") != null) {
                        if (document.getElementById("txtMenuCollapsible").value == "Y" && document.getElementById("txtWinTargetBlank").value == "Y" && IsNewWin == "Y") {
//                            funClose();
//                            try {
//                                window.parent.frames["framSplit"].document.getElementById("imgSplit").src = "../../images/mopen.gif";
//                                window.parent.frames["framSplit"].document.getElementById("imgSplit").alt = "Open menu";
//                                window.parent.frames["framSplit"].document.getElementById("btnOpen").style.visibility = "visible";
//                                window.parent.frames["framSplit"].document.getElementById("btnClose").style.visibility = "hidden";
//                            }
//                            catch (Ex) {
//                            }

                        }
                    }


                }
                else {

                    var w = window.open('/NewlungPark/webForm/Main/MainPage3.aspx?Path=' + URL, "AA", "top=0;left=0;height=768;width=1366;location=no;menubar=no;toolbar=no;");
                    w.focus();
                }
                
                
                
                
                

            } //!=null 
            else {
                window.parent.frames["fraMain"].location.replace(URL);
            }

           

        } //URL=""
    }             
 
</script>

<script type="text/javascript">
    function MM_displayStatusMsg(msgStr) {
        status = msgStr;
        document.MM_returnValue = true;
    }
    function click() {
        if (event.button == 2) {
            alert('Right button disable')
        }
    }
    document.onmousedown = click;
   // funClose();
</script>
<script type="text/javascript">
    function crtCSS(cssName) {
        var headID = document.getElementsByTagName("head")[0];
        var newCss = document.createElement('link');
        newCss.type = 'text/css';
        newCss.rel = "stylesheet";
        newCss.href = cssName;
        headID.appendChild(newCss);
    }
</script>
<body style="margin-right: 10; margin-left: 10; margin-top: 10; margin-bottom: 10;
    background-repeat: no-repeat">
    <form id="form1" runat="server" style="margin-left: 10px">
    <div>
        <asp:TextBox ID="txtWinTargetBlank" Style="display: none;" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtMenuCollapsible" Style="display: none;" runat="server"></asp:TextBox>
        <asp:TreeView ID="TreeView1" runat="server" ShowLines="true" AutoGenerateDataBindings="false"
            BackColor="transparent" Font-Size="15px" ForeColor="black">
            <NodeStyle Font-Size="15px" ForeColor="black" />
            <HoverNodeStyle Font-Underline="true" ForeColor="Red" />
            <ParentNodeStyle ImageUrl="~/Images/left_menu_pic_04.jpg" Font-Bold="True"
                ForeColor="Green" />
            <RootNodeStyle ImageUrl="~/Images/folder.gif" Font-Bold="True" 
                ForeColor="Blue" />
            <LeafNodeStyle ImageUrl="~/Images/html.gif" />
        </asp:TreeView>
    </div>
    </form>
    <p>
        &nbsp;</p>
</body>
</html>
